package westh.ilib.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import westh.cl.access.pojo.User;
import westh.util.YyAction;

/**
 * MyEclipse Struts
 * Creation date: 06-08-2006
 *
 * XDoclet definition:
 * @struts.action
 */
public class MainFrameAction extends Action {
  private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(MainFrameAction.class);

	public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) {
    westh.log.YyLog.addFootprint(request, "Main Frame");

    User ubo = (User)request.getSession().getAttribute("userBO");
    String id = ubo.getId();
  //  log.debug("userId=" + id);
    return mapping.findForward("succ");
  }
}